home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Fun House 1
/
CD Fun House (Wayzata Technology).iso
/
•Star Fleet HQ•
/
Star Trek Plus 2.8 ••••
/
Star Trek Plus
/
Star Trek Plus.rsrc
/
CODE_1.txt
< prev
next >
Wrap
Text File
|
1990-09-28
|
49KB
|
899 lines
# near model CODE resource
# jump table entries: 0-0 (1 of them)
export_0:
00000000 A036 syscall MoreMasters
00000002 A036 syscall MoreMasters
00000004 554F subq.w A7, 2
00000006 A994 syscall CurResFile
00000008 3B5F FDE0 move.w [A5 - 0x220], [A7]+
0000000C 594F subq.w A7, 4
0000000E 2F3C 434F 4445 move.l -[A7], 0x434F4445 /* 'CODE' */
00000014 3F3C 0001 move.w -[A7], 0x1
00000018 A9A0 syscall GetResource
0000001A A992 syscall DetachResource
0000001C 486D FFFC pea.l [A5 - 0x4]
00000020 A86E syscall InitGraf
00000022 A912 syscall InitWindows
00000024 A8FE syscall InitFonts
00000026 A930 syscall InitMenus
00000028 A9CC syscall TEInit
0000002A A850 syscall InitCursor
0000002C 4A78 096A tst.w [0x0000096A /* ScrapState */]
00000030 6A0C bpl +0xE /* 0000003E */
00000032 598F subq.l A7, 4
00000034 A9FC syscall ZeroScrap
00000036 584F addq.w A7, 4
00000038 3F3C 0003 move.w -[A7], 0x3
0000003C A9E5 syscall InitPack
label0000003E:
0000003E 42A7 clr.l -[A7]
00000040 A97B syscall InitDialogs
00000042 203C 0000 FFFF move.l D0, 0xFFFF
00000048 A032 syscall FlushEvents
0000004A 6100 01D0 bsr +0x1D2 /* 0000021C */
0000004E 7602 moveq.l D3, 0x02
00000050 0802 001E btst.b D2, 0x1E
00000054 660A bne +0xC /* 00000060 */
00000056 7601 moveq.l D3, 0x01
00000058 0802 0010 btst.b D2, 0x10
0000005C 6602 bne +0x4 /* 00000060 */
0000005E 7600 moveq.l D3, 0x00
label00000060:
00000060 2A03 move.l D5, D3
00000062 6100 0228 bsr +0x22A /* 0000028C */
00000066 6708 beq +0xA /* 00000070 */
00000068 3F2D FDE0 move.w -[A7], [A5 - 0x220]
0000006C 6000 0096 bra +0x98 /* 00000104 */
label00000070:
00000070 0683 0000 2455 addi.l D3, 0x2455 /* '$U' */
00000076 6100 01BA bsr +0x1BC /* 00000232 */
0000007A 2F03 move.l -[A7], D3
0000007C 284A movea.l A4, A2
0000007E 363C 2454 move.w D3, 0x2454 /* '$T' */
00000082 6100 01AE bsr +0x1B0 /* 00000232 */
00000086 2F03 move.l -[A7], D3
00000088 4E56 FF86 link A6, -0x007A
0000008C 224F movea.l A1, A7
0000008E 303C 003C move.w D0, 0x3C /* '<' */
label00000092:
00000092 4259 clr.w [A1]+
00000094 51C8 FFFC dbf D0, -0x6 /* 00000092 */
00000098 204F movea.l A0, A7
0000009A 6100 01B8 bsr +0x1BA /* 00000254 */
0000009E 6600 0054 bne +0x56 /* 000000F4 */
000000A2 4A78 03F6 tst.w [0x000003F6 /* FSFCBLen */]
000000A6 6B34 bmi +0x36 /* 000000DC */
000000A8 214A 0012 move.l [A0 + 0x12], A2
000000AC 7001 moveq.l D0, 0x01
000000AE A260 syscall FSDispatch/HFSDispatch, flags=2
000000B0 660A bne +0xC /* 000000BC */
000000B2 6100 01A0 bsr +0x1A2 /* 00000254 */
000000B6 663C bne +0x3E /* 000000F4 */
000000B8 7002 moveq.l D0, 0x02
000000BA A260 syscall FSDispatch/HFSDispatch, flags=2
label000000BC:
000000BC 3178 0210 0016 move.w [A0 + 0x16], [0x00000210 /* BootDrive */]
000000C2 42A8 0012 clr.l [A0 + 0x12]
000000C6 A207 syscall GetVolInfo/PBHGetVInfo/HGetVInfo, flags=2
000000C8 214A 0012 move.l [A0 + 0x12], A2
000000CC 7001 moveq.l D0, 0x01
000000CE A260 syscall FSDispatch/HFSDispatch, flags=2
000000D0 660A bne +0xC /* 000000DC */
000000D2 6100 0180 bsr +0x182 /* 00000254 */
000000D6 661C bne +0x1E /* 000000F4 */
000000D8 7002 moveq.l D0, 0x02
000000DA A260 syscall FSDispatch/HFSDispatch, flags=2
label000000DC:
000000DC 3178 0210 0016 move.w [A0 + 0x16], [0x00000210 /* BootDrive */]
000000E2 4A78 03F6 tst.w [0x000003F6 /* FSFCBLen */]
000000E6 6B06 bmi +0x8 /* 000000EE */
000000E8 42A8 0012 clr.l [A0 + 0x12]
000000EC A207 syscall GetVolInfo/PBHGetVInfo/HGetVInfo, flags=2
label000000EE:
000000EE 6100 0164 bsr +0x166 /* 00000254 */
000000F2 674A beq +0x4C /* 0000013E */
label000000F4:
000000F4 4E5E unlink A6
000000F6 4840 swap.w D0
000000F8 3F00 move.w -[A7], D0
000000FA 3F2D FDE0 move.w -[A7], [A5 - 0x220]
000000FE A998 syscall UseResFile
00000100 A9A3 syscall ReleaseResource
00000102 A9A3 syscall ReleaseResource
label00000104:
00000104 2044 movea.l A0, D4
00000106 A029 syscall HLock
00000108 2F04 move.l -[A7], D4
0000010A A992 syscall DetachResource
0000010C 301F move.w D0, [A7]+
0000010E B06D FDE0 cmp.w D0, [A5 - 0x220]
00000112 6704 beq +0x6 /* 00000118 */
00000114 3F00 move.w -[A7], D0
00000116 A99A syscall CloseResFile
label00000118:
00000118 2044 movea.l A0, D4
0000011A 2650 movea.l A3, [A0]
0000011C 4E56 FEAE link A6, -0x0152
00000120 244F movea.l A2, A7
00000122 43F8 0910 lea.l A1, [0x00000910 /* CurApName */]
00000126 7020 moveq.l D0, 0x20
label00000128:
00000128 34D9 move.w [A2]+, [A1]+
0000012A 51C8 FFFC dbf D0, -0x6 /* 00000128 */
0000012E 244F movea.l A2, A7
00000130 99CC sub.l A4, A4
00000132 487A 016E pea.l [PC + 0x16E /* 000002A2, value 0x4A7803F6 */]
00000136 487A 0562 pea.l [PC + 0x562 /* 0000069A, value 0x48E73CD8 */]
0000013A 4EEB 0074 jmp [A3 + 0x74]
label0000013E:
0000013E 4E56 FF00 link A6, -0x0100
00000142 264F movea.l A3, A7
00000144 2F08 move.l -[A7], A0
00000146 204B movea.l A0, A3
00000148 6130 bsr +0x32 /* 0000017A */
0000014A 2B7C 4D53 4252 FDDC move.l [A5 - 0x224], 0x4D534252 /* 'MSBR' */
00000152 6100 014E bsr +0x150 /* 000002A2 */
00000156 6630 bne +0x32 /* 00000188 */
00000158 42AD FDDC clr.l [A5 - 0x224]
0000015C 41ED FDE2 lea.l A0, [A5 - 0x21E]
00000160 2848 movea.l A4, A0
00000162 C74C exg A3, A4
00000164 6114 bsr +0x16 /* 0000017A */
00000166 284B movea.l A4, A3
00000168 205F movea.l A0, [A7]+
0000016A 4268 0016 clr.w [A0 + 0x16]
0000016E 4E5E unlink A6
00000170 6100 00E2 bsr +0xE4 /* 00000254 */
00000174 6600 FF7E bne -0x80 /* 000000F4 */
00000178 6014 bra +0x16 /* 0000018E */
fn0000017A:
0000017A 101C move.b D0, [A4]+
0000017C 10C0 move.b [A0]+, D0
fn0000017E:
0000017E 6706 beq +0x8 /* 00000186 */
00000180 10DC move.b [A0]+, [A4]+
00000182 5300 subq.b D0, 1
00000184 60F8 bra -0x6 /* 0000017E */
label00000186:
00000186 4E75 rts
label00000188:
00000188 4E5E unlink A6
0000018A 6002 bra +0x4 /* 0000018E */
label0000018C:
0000018C 584F addq.w A7, 4
label0000018E:
0000018E 363C 2458 move.w D3, 0x2458 /* '$X' */
00000192 4E5E unlink A6
00000194 3F2D FDE0 move.w -[A7], [A5 - 0x220]
00000198 A998 syscall UseResFile
0000019A 2EAF 0004 move.l [A7], [A7 + 0x4]
0000019E 6100 0092 bsr +0x94 /* 00000232 */
000001A2 2F43 0004 move.l [A7 + 0x4], D3
000001A6 4E56 FF00 link A6, -0x0100
000001AA 264F movea.l A3, A7
000001AC 286E 0008 movea.l A4, [A6 + 0x8]
000001B0 2854 movea.l A4, [A4]
000001B2 204B movea.l A0, A3
000001B4 61C4 bsr -0x3A /* 0000017A */
000001B6 286E 0004 movea.l A4, [A6 + 0x4]
000001BA 2854 movea.l A4, [A4]
000001BC 7000 moveq.l D0, 0x00
000001BE 101C move.b D0, [A4]+
000001C0 10FC 0020 move.b [A0]+, 0x20 /* ' ' */
000001C4 D113 add.b [A3], D0
000001C6 4A40 tst.w D0
000001C8 61B4 bsr -0x4A /* 0000017E */
000001CA 5213 addq.b [A3], 1
000001CC 303C 0081 move.w D0, 0x81
000001D0 6100 0318 bsr +0x31A /* 000004EA */
000001D4 594F subq.w A7, 4
000001D6 2F0F move.l -[A7], A7
000001D8 A874 syscall GetPort
000001DA 594F subq.w A7, 4
000001DC 3F3C 0081 move.w -[A7], 0x81
000001E0 4878 0000 push.l 0x0
000001E4 4878 FFFF push.l 0xFFFF
000001E8 A97C syscall GetNewDialog
000001EA 2457 movea.l A2, [A7]
000001EC A873 syscall SetPort
000001EE 2F0A move.l -[A7], A2
000001F0 A915 syscall ShowWindow
000001F2 303C 0002 move.w D0, 0x2
000001F6 6100 0358 bsr +0x35A /* 00000550 */
000001FA 303C 0001 move.w D0, 0x1
000001FE 6100 032C bsr +0x32E /* 0000052C */
00000202 4878 0000 push.l 0x0
00000206 486D FDF0 pea.l [A5 - 0x210]
0000020A A991 syscall ModalDialog
0000020C 2F0A move.l -[A7], A2
0000020E A983 syscall DisposeDialog
00000210 A873 syscall SetPort
00000212 4E5E unlink A6
00000214 A9A3 syscall ReleaseResource
00000216 A9A3 syscall ReleaseResource
00000218 91C8 sub.l A0, A0
0000021A 4E75 rts
fn0000021C:
0000021C 42A7 clr.l -[A7]
0000021E 2F3C 4D42 4349 move.l -[A7], 0x4D424349 /* 'MBCI' */
00000224 4267 clr.w -[A7]
00000226 A9A0 syscall GetResource
00000228 225F movea.l A1, [A7]+
0000022A 2251 movea.l A1, [A1]
0000022C 2429 0004 move.l D2, [A1 + 0x4]
00000230 4E75 rts
fn00000232:
00000232 2648 movea.l A3, A0
00000234 42A7 clr.l -[A7]
00000236 2F3C 5354 5220 move.l -[A7], 0x53545220 /* 'STR ' */
0000023C 3F03 move.w -[A7], D3
0000023E A9A0 syscall GetResource
00000240 245F movea.l A2, [A7]+
00000242 260A move.l D3, A2
00000244 2452 movea.l A2, [A2]
00000246 C78A exg D3, A2
00000248 0283 00FF FFFF andi.l D3, 0xFFFFFF
0000024E C78A exg D3, A2
00000250 204B movea.l A0, A3
00000252 4E75 rts
fn00000254:
00000254 2648 movea.l A3, A0
00000256 554F subq.w A7, 2
00000258 2F0C move.l -[A7], A4
0000025A 4A78 03F6 tst.w [0x000003F6 /* FSFCBLen */]
0000025E 6B0C bmi +0xE /* 0000026C */
00000260 3F28 0016 move.w -[A7], [A0 + 0x16]
00000264 3F3C 0001 move.w -[A7], 0x1
00000268 A9C4 syscall OpenRFPerm
0000026A 6002 bra +0x4 /* 0000026E */
label0000026C:
0000026C A997 syscall OpenResFile
label0000026E:
0000026E 554F subq.w A7, 2
00000270 A9AF syscall ResError
00000272 301F move.w D0, [A7]+
00000274 4840 swap.w D0
00000276 301F move.w D0, [A7]+
00000278 4840 swap.w D0
0000027A 4A40 tst.w D0
0000027C 6608 bne +0xA /* 00000286 */
0000027E 610C bsr +0xE /* 0000028C */
00000280 6700 FF0A beq -0xF4 /* 0000018C */
00000284 6002 bra +0x4 /* 00000288 */
label00000286:
00000286 7000 moveq.l D0, 0x00
label00000288:
00000288 204B movea.l A0, A3
0000028A 4E75 rts
fn0000028C:
0000028C 2F00 move.l -[A7], D0
0000028E 594F subq.w A7, 4
00000290 2F3C 4D42 524C move.l -[A7], 0x4D42524C /* 'MBRL' */
00000296 3F05 move.w -[A7], D5
00000298 A9A0 syscall GetResource
0000029A 281F move.l D4, [A7]+
0000029C 4CDF 0001 movem.l D0, [A7]+
000002A0 4E75 rts
fn000002A2:
000002A2 4A78 03F6 tst.w [0x000003F6 /* FSFCBLen */]
000002A6 6A04 bpl +0x6 /* 000002AC */
000002A8 7001 moveq.l D0, 0x01
000002AA 4E75 rts
label000002AC:
000002AC 48E7 7FFE movem.l -[A7], D1,D2,D3,D4,D5,D6,D7,A0,A1,A2,A3,A4,A5,A6
000002B0 4E56 FE44 link A6, -0x01BC
000002B4 554F subq.w A7, 2
000002B6 A994 syscall CurResFile
000002B8 49EE FE44 lea.l A4, [A6 - 0x1BC]
000002BC 204C movea.l A0, A4
000002BE 703D moveq.l D0, 0x3D
label000002C0:
000002C0 4258 clr.w [A0]+
000002C2 5340 subq.w D0, 1
000002C4 66FA bne -0x4 /* 000002C0 */
000002C6 43EE FEC6 lea.l A1, [A6 - 0x13A]
000002CA 2609 move.l D3, A1
000002CC 244B movea.l A2, A3
000002CE 101A move.b D0, [A2]+
000002D0 12C0 move.b [A1]+, D0
000002D2 2049 movea.l A0, A1
label000002D4:
000002D4 141A move.b D2, [A2]+
000002D6 12C2 move.b [A1]+, D2
000002D8 0C02 003A cmpi.b D2, 0x3A /* ':' */
000002DC 6602 bne +0x4 /* 000002E0 */
000002DE 2049 movea.l A0, A1
label000002E0:
000002E0 5340 subq.w D0, 1
000002E2 66F0 bne -0xE /* 000002D4 */
000002E4 2B48 FEE4 move.l [A5 - 0x11C], A0
000002E8 2009 move.l D0, A1
000002EA 9088 sub.l D0, A0
000002EC 3B40 FEE2 move.w [A5 - 0x11E], D0
000002F0 2449 movea.l A2, A1
000002F2 294A 0012 move.l [A4 + 0x12], A2
000002F6 204C movea.l A0, A4
000002F8 A214 syscall GetVol/PBHGetVol/HGetVol, flags=2
000002FA 102C 0011 move.b D0, [A4 + 0x11]
000002FE 4880 ext.w D0
00000300 6600 035A bne +0x35C /* 0000065C */
00000304 282C 0030 move.l D4, [A4 + 0x30]
00000308 2D44 FEBE move.l [A6 - 0x142], D4
0000030C 41FA 034E lea.l A0, [PC + 0x34E /* 0000065C, value 0x3600A998, cstring "6" */]
00000310 2D48 FE40 move.l [A6 - 0x1C0], A0
00000314 554F subq.w A7, 2
00000316 2F3C 4D42 504E move.l -[A7], 0x4D42504E /* 'MBPN' */
0000031C A99C syscall CountResources
0000031E 613E bsr +0x40 /* 0000035E */
00000320 3A1F move.w D5, [A7]+
00000322 6700 015C beq +0x15E /* 00000480 */
label00000326:
00000326 594F subq.w A7, 4
00000328 2F3C 4D42 504E move.l -[A7], 0x4D42504E /* 'MBPN' */
0000032E 3F05 move.w -[A7], D5
00000330 A99D syscall GetIndResource
00000332 612A bsr +0x2C /* 0000035E */
00000334 2E1F move.l D7, [A7]+
00000336 671A beq +0x1C /* 00000352 */
00000338 2047 movea.l A0, D7
0000033A 2050 movea.l A0, [A0]
0000033C B890 cmp.l D4, [A0]
0000033E 6612 bne +0x14 /* 00000352 */
00000340 D0FC 0008 add.w A0, 0x8
00000344 2C08 move.l D6, A0
00000346 2243 movea.l A1, D3
00000348 612C bsr +0x2E /* 00000376 */
0000034A 6606 bne +0x8 /* 00000352 */
0000034C 224A movea.l A1, A2
0000034E 6126 bsr +0x28 /* 00000376 */
00000350 674C beq +0x4E /* 0000039E */
label00000352:
00000352 2F07 move.l -[A7], D7
00000354 A9A3 syscall ReleaseResource
label00000356:
00000356 5345 subq.w D5, 1
00000358 66CC bne -0x32 /* 00000326 */
0000035A 6000 0124 bra +0x126 /* 00000480 */
fn0000035E:
0000035E 3038 0A60 move.w D0, [0x00000A60 /* ResErr */]
label00000362:
00000362 6704 beq +0x6 /* 00000368 */
00000364 2EAE FE40 move.l [A7], [A6 - 0x1C0]
label00000368:
00000368 4E75 rts
0000036A 3F00 move.w -[A7], D0
0000036C 2047 movea.l A0, D7
0000036E A023 syscall DisposHandle/DisposeHandle
00000370 301F move.w D0, [A7]+
00000372 6000 02E8 bra +0x2EA /* 0000065C */
fn00000376:
00000376 2F06 move.l -[A7], D6
00000378 2F08 move.l -[A7], A0
0000037A 7000 moveq.l D0, 0x00
0000037C 1018 move.b D0, [A0]+
0000037E 3C00 move.w D6, D0
00000380 1219 move.b D1, [A1]+
00000382 B200 cmp.b D1, D0
00000384 6614 bne +0x16 /* 0000039A */
00000386 4840 swap.w D0
00000388 1001 move.b D0, D1
0000038A A03C syscall CmpString
0000038C 4A80 tst.l D0
0000038E 205F movea.l A0, [A7]+
00000390 41F0 6001 lea.l A0, [A0 + D6.w + 0x1]
label00000394:
00000394 4CDF 0040 movem.l D6, [A7]+
00000398 4E75 rts
label0000039A:
0000039A 205F movea.l A0, [A7]+
0000039C 60F6 bra -0x8 /* 00000394 */
label0000039E:
0000039E 2948 0012 move.l [A4 + 0x12], A0
000003A2 5210 addq.b [A0], 1
000003A4 397C 8000 0016 move.w [A4 + 0x16], 0x8000
000003AA 397C FFFF 001C move.w [A4 + 0x1C], 0xFFFF
000003B0 204C movea.l A0, A4
000003B2 A207 syscall GetVolInfo/PBHGetVInfo/HGetVInfo, flags=2
000003B4 302C 0010 move.w D0, [A4 + 0x10]
000003B8 6600 00C2 bne +0xC4 /* 0000047C */
000003BC 617A bsr +0x7C /* 00000438 */
000003BE 7001 moveq.l D0, 0x01
000003C0 A260 syscall FSDispatch/HFSDispatch, flags=2
000003C2 4A40 tst.w D0
000003C4 6600 00B6 bne +0xB8 /* 0000047C */
000003C8 41ED FEE2 lea.l A0, [A5 - 0x11E]
000003CC 3018 move.w D0, [A0]+
000003CE 3200 move.w D1, D0
000003D0 2058 movea.l A0, [A0]+
000003D2 41F0 0000 lea.l A0, [A0 + D0.w]
000003D6 43ED FEE2 lea.l A1, [A5 - 0x11E]
label000003DA:
000003DA 1320 move.b -[A1], -[A0]
000003DC 5340 subq.w D0, 1
000003DE 66FA bne -0x4 /* 000003DA */
000003E0 2F09 move.l -[A7], A1
000003E2 1301 move.b -[A1], D1
000003E4 2949 0012 move.l [A4 + 0x12], A1
000003E8 422C 001A clr.b [A4 + 0x1A]
000003EC 426C 001C clr.w [A4 + 0x1C]
000003F0 204C movea.l A0, A4
000003F2 3F28 0016 move.w -[A7], [A0 + 0x16]
000003F6 A00C syscall GetFileInfo/PBHGetFInfo/HGetFileInfo
000003F8 321F move.w D1, [A7]+
000003FA 225F movea.l A1, [A7]+
000003FC 4A40 tst.w D0
000003FE 664E bne +0x50 /* 0000044E */
00000400 244C movea.l A2, A4
00000402 3A2A 0016 move.w D5, [A2 + 0x16]
00000406 382D FEE2 move.w D4, [A5 - 0x11E]
0000040A 2F0B move.l -[A7], A3
0000040C 2649 movea.l A3, A1
0000040E 4E56 FFC0 link A6, -0x0040
00000412 254F 0012 move.l [A2 + 0x12], A7
00000416 6100 03A4 bsr +0x3A6 /* 000007BC */
0000041A 4E5E unlink A6
0000041C 225F movea.l A1, [A7]+
0000041E 3004 move.w D0, D4
00000420 6B00 FF40 bmi -0xBE /* 00000362 */
00000424 6E06 bgt +0x8 /* 0000042C */
00000426 7002 moveq.l D0, 0x02
00000428 6000 FF38 bra -0xC6 /* 00000362 */
label0000042C:
0000042C 12C0 move.b [A1]+, D0
label0000042E:
0000042E 6700 022C beq +0x22E /* 0000065C */
00000432 12DB move.b [A1]+, [A3]+
00000434 5300 subq.b D0, 1
00000436 60F6 bra -0x8 /* 0000042E */
fn00000438:
00000438 42AC 0012 clr.l [A4 + 0x12]
0000043C 42AC 001C clr.l [A4 + 0x1C]
00000440 2247 movea.l A1, D7
00000442 2251 movea.l A1, [A1]
00000444 2969 0004 0030 move.l [A4 + 0x30], [A1 + 0x4]
0000044A 204C movea.l A0, A4
0000044C 4E75 rts
label0000044E:
0000044E 61E8 bsr -0x16 /* 00000438 */
00000450 3141 0016 move.w [A0 + 0x16], D1
00000454 7002 moveq.l D0, 0x02
00000456 A260 syscall FSDispatch/HFSDispatch, flags=2
00000458 554F subq.w A7, 2
0000045A A994 syscall CurResFile
0000045C 554F subq.w A7, 2
0000045E 2F07 move.l -[A7], D7
00000460 A9A4 syscall HomeResFile
00000462 A998 syscall UseResFile
00000464 2F07 move.l -[A7], D7
00000466 A9AD syscall RemoveResource/RmveResource
00000468 4A78 0A60 tst.w [0x00000A60 /* ResErr */]
0000046C 6604 bne +0x6 /* 00000472 */
0000046E 2047 movea.l A0, D7
00000470 A023 syscall DisposHandle/DisposeHandle
label00000472:
00000472 A998 syscall UseResFile
00000474 6100 FEE8 bsr -0x116 /* 0000035E */
00000478 6000 FEDC bra -0x122 /* 00000356 */
label0000047C:
0000047C 2F07 move.l -[A7], D7
0000047E A9A3 syscall ReleaseResource
label00000480:
00000480 303C 0082 move.w D0, 0x82
00000484 6164 bsr +0x66 /* 000004EA */
00000486 204A movea.l A0, A2
00000488 2F0A move.l -[A7], A2
0000048A A029 syscall HLock
0000048C 2452 movea.l A2, [A2]
0000048E 302A 0002 move.w D0, [A2 + 0x2]
00000492 5240 addq.w D0, 1
00000494 3540 0002 move.w [A2 + 0x2], D0
00000498 205F movea.l A0, [A7]+
0000049A A02A syscall HUnlock
0000049C 594F subq.w A7, 4
0000049E 2F0F move.l -[A7], A7
000004A0 A874 syscall GetPort
000004A2 594F subq.w A7, 4
000004A4 3F3C 0082 move.w -[A7], 0x82
000004A8 4878 0000 push.l 0x0
000004AC 4878 FFFF push.l 0xFFFF
000004B0 A97C syscall GetNewDialog
000004B2 2457 movea.l A2, [A7]
000004B4 A873 syscall SetPort
000004B6 2F0A move.l -[A7], A2
000004B8 A915 syscall ShowWindow
000004BA 303C 0004 move.w D0, 0x4
000004BE 6100 0090 bsr +0x92 /* 00000550 */
000004C2 303C 0001 move.w D0, 0x1
000004C6 6164 bsr +0x66 /* 0000052C */
000004C8 4878 0000 push.l 0x0
000004CC 486D FDF0 pea.l [A5 - 0x210]
000004D0 A991 syscall ModalDialog
000004D2 2F0A move.l -[A7], A2
000004D4 A983 syscall DisposeDialog
000004D6 A873 syscall SetPort
000004D8 302D FDF0 move.w D0, [A5 - 0x210]
000004DC 0C40 0002 cmpi.w D0, 0x2
000004E0 6600 008E bne +0x90 /* 00000570 */
000004E4 7001 moveq.l D0, 0x01
000004E6 6000 0174 bra +0x176 /* 0000065C */
fn000004EA:
000004EA 42A7 clr.l -[A7]
000004EC 2F3C 444C 4F47 move.l -[A7], 0x444C4F47 /* 'DLOG' */
000004F2 3F00 move.w -[A7], D0
000004F4 A9A0 syscall GetResource
000004F6 2457 movea.l A2, [A7]
000004F8 204A movea.l A0, A2
000004FA A029 syscall HLock
000004FC 2012 move.l D0, [A2]
000004FE 0280 00FF FFFF andi.l D0, 0xFFFFFF
00000504 2440 movea.l A2, D0
00000506 302A 0006 move.w D0, [A2 + 0x6]
0000050A 906A 0002 sub.w D0, [A2 + 0x2]
0000050E 3200 move.w D1, D0
00000510 4440 neg.w D0
00000512 D06D FF8E add.w D0, [A5 - 0x72]
00000516 906D FF8A sub.w D0, [A5 - 0x76]
0000051A E240 asr D0.w, 1
0000051C 3540 0002 move.w [A2 + 0x2], D0
00000520 D041 add.w D0, D1
00000522 3540 0006 move.w [A2 + 0x6], D0
00000526 205F movea.l A0, [A7]+
00000528 A02A syscall HUnlock
0000052A 4E75 rts
fn0000052C:
0000052C 612E bsr +0x30 /* 0000055C */
0000052E 2F3C 0003 0003 move.l -[A7], 0x30003
00000534 A89B syscall PenSize
00000536 486D FDE8 pea.l [A5 - 0x218]
0000053A 2F17 move.l -[A7], [A7]
0000053C 2F3C FFFC FFFC move.l -[A7], 0xFFFCFFFC
00000542 A8A9 syscall InsetRect
00000544 2F3C 0010 0010 move.l -[A7], 0x100010
0000054A A8B0 syscall FrameRoundRect
0000054C A89E syscall PenNormal
0000054E 4E75 rts
fn00000550:
00000550 610A bsr +0xC /* 0000055C */
00000552 2F2D FDE4 move.l -[A7], [A5 - 0x21C]
00000556 2F0B move.l -[A7], A3
00000558 A98F syscall SetDialogItemText/SetIText
0000055A 4E75 rts
fn0000055C:
0000055C 2F0A move.l -[A7], A2
0000055E 3F00 move.w -[A7], D0
00000560 486D FDE2 pea.l [A5 - 0x21E]
00000564 486D FDE4 pea.l [A5 - 0x21C]
00000568 486D FDE8 pea.l [A5 - 0x218]
0000056C A98D syscall GetDialogItem/GetDItem
0000056E 4E75 rts
label00000570:
00000570 244B movea.l A2, A3
00000572 4212 clr.b [A2]
00000574 4AAD FDDC tst.l [A5 - 0x224]
00000578 6710 beq +0x12 /* 0000058A */
0000057A 7004 moveq.l D0, 0x04
0000057C 14C0 move.b [A2]+, D0
0000057E 47ED FDDC lea.l A3, [A5 - 0x224]
label00000582:
00000582 14DB move.b [A2]+, [A3]+
00000584 5340 subq.w D0, 1
00000586 66FA bne -0x4 /* 00000582 */
00000588 5B4A subq.w A2, 5
label0000058A:
0000058A 47FA 00DE lea.l A3, [PC + 0xDE /* 0000066A, value 0x48E7E0C0 */]
0000058E 7001 moveq.l D0, 0x01
00000590 6100 0108 bsr +0x10A /* 0000069A */
00000594 6B00 FDCC bmi -0x232 /* 00000362 */
00000598 6710 beq +0x12 /* 000005AA */
0000059A 7002 moveq.l D0, 0x02
0000059C 6000 FDC4 bra -0x23A /* 00000362 */
fn000005A0:
000005A0 302C 0010 move.w D0, [A4 + 0x10]
000005A4 6600 FDBC bne -0x242 /* 00000362 */
000005A8 4E75 rts
label000005AA:
000005AA 4A12 tst.b [A2]
000005AC 6606 bne +0x8 /* 000005B4 */
000005AE 7001 moveq.l D0, 0x01
000005B0 6000 00AA bra +0xAC /* 0000065C */
label000005B4:
000005B4 294A 0012 move.l [A4 + 0x12], A2
000005B8 422C 001A clr.b [A4 + 0x1A]
000005BC 426C 001C clr.w [A4 + 0x1C]
000005C0 426C 0016 clr.w [A4 + 0x16]
000005C4 204C movea.l A0, A4
000005C6 A20C syscall GetFileInfo/PBHGetFInfo/HGetFileInfo, flags=2
000005C8 61D6 bsr -0x28 /* 000005A0 */
000005CA 422C 001A clr.b [A4 + 0x1A]
000005CE 426C 001C clr.w [A4 + 0x1C]
000005D2 204C movea.l A0, A4
000005D4 7009 moveq.l D0, 0x09
000005D6 A260 syscall FSDispatch/HFSDispatch, flags=2
000005D8 61C6 bsr -0x38 /* 000005A0 */
000005DA 2D6C 0064 FEC2 move.l [A6 - 0x13E], [A4 + 0x64]
000005E0 41EE FEC6 lea.l A0, [A6 - 0x13A]
000005E4 7000 moveq.l D0, 0x00
000005E6 1010 move.b D0, [A0]
000005E8 41F0 0001 lea.l A0, [A0 + D0.w + 0x1]
000005EC 1010 move.b D0, [A0]
000005EE 41F0 0002 lea.l A0, [A0 + D0.w + 0x2]
000005F2 2248 movea.l A1, A0
000005F4 101A move.b D0, [A2]+
000005F6 5340 subq.w D0, 1
label000005F8:
000005F8 141A move.b D2, [A2]+
000005FA 10C2 move.b [A0]+, D2
000005FC 0C02 003A cmpi.b D2, 0x3A /* ':' */
00000600 57C8 FFF6 dbeq D0, -0xC /* 000005F8 */
00000604 6706 beq +0x8 /* 0000060C */
00000606 7002 moveq.l D0, 0x02
00000608 6000 FD58 bra -0x2A6 /* 00000362 */
label0000060C:
0000060C 2008 move.l D0, A0
0000060E 9089 sub.l D0, A1
00000610 5380 subq.l D0, 1
00000612 1300 move.b -[A1], D0
00000614 47EE FEBE lea.l A3, [A6 - 0x142]
00000618 2008 move.l D0, A0
0000061A 908B sub.l D0, A3
0000061C 2400 move.l D2, D0
0000061E A122 syscall NewHandle, flags=1
00000620 2E08 move.l D7, A0
00000622 6604 bne +0x6 /* 00000628 */
00000624 6000 FD3C bra -0x2C2 /* 00000362 */
label00000628:
00000628 43FA FD40 lea.l A1, [PC - 0x2C0 /* 0000036A, value 0x3F002047 '?\0 G', cstring "?" */]
0000062C 2D49 FE40 move.l [A6 - 0x1C0], A1
00000630 2050 movea.l A0, [A0]
label00000632:
00000632 10DB move.b [A0]+, [A3]+
00000634 5342 subq.w D2, 1
00000636 66FA bne -0x4 /* 00000632 */
00000638 3F2D FDE0 move.w -[A7], [A5 - 0x220]
0000063C A998 syscall UseResFile
0000063E 554F subq.w A7, 2
00000640 2F3C 4D42 504E move.l -[A7], 0x4D42504E /* 'MBPN' */
00000646 A9C1 syscall UniqueID
00000648 301F move.w D0, [A7]+
0000064A 2F07 move.l -[A7], D7
0000064C 2F3C 4D42 504E move.l -[A7], 0x4D42504E /* 'MBPN' */
00000652 3F00 move.w -[A7], D0
00000654 6102 bsr +0x4 /* 00000658 */
00000656 0000 A9AB ori.b D0, 0xAB
// begin alternate branch 00000658-0000065A
fn00000658:
00000658 A9AB syscall AddResource
// end alternate branch 00000658-0000065A
fn00000658: // (misaligned)
0000065A 7000 moveq.l D0, 0x00
label0000065C:
0000065C 3600 move.w D3, D0
0000065E A998 syscall UseResFile
00000660 4E5E unlink A6
00000662 3003 move.w D0, D3
00000664 4CDF 7FFE movem.l D1,D2,D3,D4,D5,D6,D7,A0,A1,A2,A3,A4,A5,A6, [A7]+
00000668 4E75 rts
0000066A 48E7 E0C0 movem.l -[A7], D0,D1,D2,A0,A1
0000066E 226D FEE4 movea.l A1, [A5 - 0x11C]
00000672 206F 0018 movea.l A0, [A7 + 0x18]
00000676 2068 0012 movea.l A0, [A0 + 0x12]
0000067A 7000 moveq.l D0, 0x00
0000067C 1018 move.b D0, [A0]+
0000067E 4840 swap.w D0
00000680 302D FEE2 move.w D0, [A5 - 0x11E]
00000684 A03C syscall CmpString
00000686 56C0 sne D0
00000688 4880 ext.w D0
0000068A 3F40 001C move.w [A7 + 0x1C], D0
0000068E 4CDF 0307 movem.l D0,D1,D2,A0,A1, [A7]+
00000692 2E9F move.l [A7], [A7]+
00000694 4A6F 0004 tst.w [A7 + 0x4]
00000698 4E75 rts
fn0000069A:
0000069A 48E7 3CD8 movem.l -[A7], D2,D3,D4,D5,A0,A1,A3,A4
0000069E 4E56 FE54 link A6, -0x01AC
000006A2 260A move.l D3, A2
000006A4 49EE FE54 lea.l A4, [A6 - 0x1AC]
000006A8 7200 moveq.l D1, 0x00
000006AA 1212 move.b D1, [A2]
000006AC 3801 move.w D4, D1
000006AE 224C movea.l A1, A4
000006B0 1881 move.b [A4], D1
000006B2 6710 beq +0x12 /* 000006C4 */
000006B4 41EA 0001 lea.l A0, [A2 + 0x1]
000006B8 4A40 tst.w D0
000006BA 6602 bne +0x4 /* 000006BE */
000006BC 5249 addq.w A1, 1
label000006BE:
000006BE 12D8 move.b [A1]+, [A0]+
000006C0 5341 subq.w D1, 1
000006C2 66FA bne -0x4 /* 000006BE */
label000006C4:
000006C4 3F00 move.w -[A7], D0
000006C6 42A7 clr.l -[A7]
000006C8 2F3C 444C 4F47 move.l -[A7], 0x444C4F47 /* 'DLOG' */
000006CE 343C F061 move.w D2, 0xF061
000006D2 4A40 tst.w D0
000006D4 6704 beq +0x6 /* 000006DA */
000006D6 343C F060 move.w D2, 0xF060
label000006DA:
000006DA 3F02 move.w -[A7], D2
000006DC A9A0 syscall GetResource
000006DE 2457 movea.l A2, [A7]
000006E0 204A movea.l A0, A2
000006E2 A029 syscall HLock
000006E4 2452 movea.l A2, [A2]
000006E6 342A 0006 move.w D2, [A2 + 0x6]
000006EA 946A 0002 sub.w D2, [A2 + 0x2]
000006EE 4442 neg.w D2
000006F0 D46D FF8E add.w D2, [A5 - 0x72]
000006F4 946D FF8A sub.w D2, [A5 - 0x76]
000006F8 E242 asr D2.w, 1
000006FA 5542 subq.w D2, 2
000006FC 205F movea.l A0, [A7]+
000006FE A02A syscall HUnlock
00000700 301F move.w D0, [A7]+
00000702 0282 0000 FFFF andi.l D2, 0xFFFF
00000708 0082 0046 0000 ori.l D2, 0x460000 /* 'F\0\0' */
0000070E 2F02 move.l -[A7], D2
00000710 7401 moveq.l D2, 0x01
00000712 4A40 tst.w D0
00000714 6712 beq +0x14 /* 00000728 */
00000716 7402 moveq.l D2, 0x02
00000718 42A7 clr.l -[A7]
0000071A 2F0B move.l -[A7], A3
0000071C E44C lsr D4.w, 2
0000071E 6602 bne +0x4 /* 00000722 */
00000720 78FF moveq.l D4, 0xFFFFFFFF
label00000722:
00000722 3F04 move.w -[A7], D4
00000724 224C movea.l A1, A4
00000726 6006 bra +0x8 /* 0000072E */
label00000728:
00000728 2F0C move.l -[A7], A4
0000072A 43FA 001C lea.l A1, [PC + 0x1C /* 00000748, value 0x7800 'x\0', cstring "" */]
label0000072E:
0000072E 2F09 move.l -[A7], A1
00000730 42A7 clr.l -[A7]
00000732 486E FF54 pea.l [A6 - 0xAC]
00000736 3F02 move.w -[A7], D2
00000738 A9EA syscall Pack3
0000073A 4A2E FF54 tst.b [A6 - 0xAC]
0000073E 660A bne +0xC /* 0000074A */
00000740 7000 moveq.l D0, 0x00
00000742 2443 movea.l A2, D3
00000744 1480 move.b [A2], D0
00000746 6062 bra +0x64 /* 000007AA */
00000748 0000 7800 ori.b D0, 0x0
// begin alternate branch 0000074A-0000074C
label0000074A:
0000074A 7800 moveq.l D4, 0x00
// end alternate branch 0000074A-0000074C
label0000074A: // (misaligned)
0000074C 47ED FEE2 lea.l A3, [A5 - 0x11E]
00000750 43EE FF5E lea.l A1, [A6 - 0xA2]
00000754 C34C exg A1, A4
00000756 6100 00E6 bsr +0xE8 /* 0000083E */
0000075A 2849 movea.l A4, A1
0000075C 45EE FF94 lea.l A2, [A6 - 0x6C]
00000760 204A movea.l A0, A2
00000762 7027 moveq.l D0, 0x27
label00000764:
00000764 4258 clr.w [A0]+
00000766 51C8 FFFC dbf D0, -0x6 /* 00000764 */
0000076A 254C 0012 move.l [A2 + 0x12], A4
0000076E 4A78 03F6 tst.w [0x000003F6 /* FSFCBLen */]
00000772 6B1C bmi +0x1E /* 00000790 */
00000774 0C13 003A cmpi.b [A3], 0x3A /* ':' */
00000778 6606 bne +0x8 /* 00000780 */
0000077A 5344 subq.w D4, 1
0000077C 524B addq.w A3, 1
0000077E 6010 bra +0x12 /* 00000790 */
label00000780:
00000780 3004 move.w D0, D4
00000782 5340 subq.w D0, 1
00000784 204B movea.l A0, A3
label00000786:
00000786 0C18 003A cmpi.b [A0]+, 0x3A /* ':' */
0000078A 57C8 FFFA dbeq D0, -0x8 /* 00000786 */
0000078E 670C beq +0xE /* 0000079C */
label00000790:
00000790 3A2E FF5A move.w D5, [A6 - 0xA6]
00000794 6100 0026 bsr +0x28 /* 000007BC */
00000798 671A beq +0x1C /* 000007B4 */
0000079A 6B1C bmi +0x1E /* 000007B8 */
label0000079C:
0000079C 2443 movea.l A2, D3
0000079E 3004 move.w D0, D4
000007A0 14C0 move.b [A2]+, D0
label000007A2:
000007A2 14DB move.b [A2]+, [A3]+
000007A4 5340 subq.w D0, 1
000007A6 66FA bne -0x4 /* 000007A2 */
000007A8 7000 moveq.l D0, 0x00
label000007AA:
000007AA 2443 movea.l A2, D3
000007AC 4E5E unlink A6
000007AE 4CDF 1B3C movem.l D2,D3,D4,D5,A0,A1,A3,A4, [A7]+
000007B2 4E75 rts
label000007B4:
000007B4 7001 moveq.l D0, 0x01
000007B6 60F2 bra -0xC /* 000007AA */
label000007B8:
000007B8 3004 move.w D0, D4
000007BA 60EE bra -0x10 /* 000007AA */
fn000007BC:
000007BC 48E7 E0C8 movem.l -[A7], D0,D1,D2,A0,A1,A4
000007C0 4E56 0000 link A6, 0
000007C4 286A 0012 movea.l A4, [A2 + 0x12]
000007C8 4A78 03F6 tst.w [0x000003F6 /* FSFCBLen */]
000007CC 6B2C bmi +0x2E /* 000007FA */
000007CE 357C FFFF 001C move.w [A2 + 0x1C], 0xFFFF
000007D4 3545 0016 move.w [A2 + 0x16], D5
000007D8 42AA 0030 clr.l [A2 + 0x30]
000007DC 6148 bsr +0x4A /* 00000826 */
000007DE 202A 0030 move.l D0, [A2 + 0x30]
label000007E2:
000007E2 0C80 0000 0002 cmpi.l D0, 0x2
000007E8 6710 beq +0x12 /* 000007FA */
000007EA 2540 0030 move.l [A2 + 0x30], D0
000007EE 6136 bsr +0x38 /* 00000826 */
000007F0 6146 bsr +0x48 /* 00000838 */
000007F2 6726 beq +0x28 /* 0000081A */
000007F4 202A 0064 move.l D0, [A2 + 0x64]
000007F8 60E8 bra -0x16 /* 000007E2 */
label000007FA:
000007FA 3545 0016 move.w [A2 + 0x16], D5
000007FE 426A 001C clr.w [A2 + 0x1C]
00000802 204A movea.l A0, A2
00000804 A007 syscall GetVolInfo/PBHGetVInfo/HGetVInfo
00000806 6124 bsr +0x26 /* 0000082C */
00000808 612E bsr +0x30 /* 00000838 */
0000080A 3004 move.w D0, D4
0000080C 670C beq +0xE /* 0000081A */
0000080E 41ED FDE2 lea.l A0, [A5 - 0x21E]
label00000812:
00000812 10DB move.b [A0]+, [A3]+
00000814 5340 subq.w D0, 1
00000816 66FA bne -0x4 /* 00000812 */
00000818 4A44 tst.w D4
label0000081A:
0000081A 47ED FDE2 lea.l A3, [A5 - 0x21E]
0000081E 4E5E unlink A6
00000820 4CDF 1307 movem.l D0,D1,D2,A0,A1,A4, [A7]+
00000824 4E75 rts
fn00000826:
00000826 204A movea.l A0, A2
00000828 7009 moveq.l D0, 0x09
0000082A A260 syscall FSDispatch/HFSDispatch, flags=2
fn0000082C:
0000082C 302A 0010 move.w D0, [A2 + 0x10]
00000830 6602 bne +0x4 /* 00000834 */
00000832 4E75 rts
label00000834:
00000834 3800 move.w D4, D0
00000836 60E2 bra -0x1C /* 0000081A */
fn00000838:
00000838 173C 003A move.b -[A3], 0x3A /* ':' */
0000083C 5244 addq.w D4, 1
fn0000083E:
0000083E 204C movea.l A0, A4
00000840 1010 move.b D0, [A0]
00000842 4880 ext.w D0
00000844 6714 beq +0x16 /* 0000085A */
00000846 4218 clr.b [A0]+
00000848 D0C0 add.w A0, D0
0000084A D840 add.w D4, D0
0000084C 0C44 00FF cmpi.w D4, 0xFF
00000850 620A bhi +0xC /* 0000085C */
label00000852:
00000852 1720 move.b -[A3], -[A0]
00000854 66FC bne -0x2 /* 00000852 */
00000856 524B addq.w A3, 1
00000858 7001 moveq.l D0, 0x01
label0000085A:
0000085A 4E75 rts
label0000085C:
0000085C 7800 moveq.l D4, 0x00
0000085E 4E75 rts